package com.forekonw.demo6;

import java.util.Scanner;

public class Person {
    private String name;
    private int a;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getA() {
        return a;
    }

    public void setA(int a) {
        this.a = a;
    }

    public int pchuquan (int a ){

        int b = a;
        switch (b){
            case 1:
                System.out.println(this.getName()+"  出了剪刀");
                break;
            case 2:
                System.out.println(this.getName()+"  出了石头");
                break;
            case 3:
                System.out.println(this.getName()+"  出了布");
                break;
        }
        return b;
    }
}
